import request from '@/utils/request'

// 查询课程学生列表
export function listCoursestudent(query) {
  return request({
    url: '/feedback/coursestudent/list',
    method: 'get',
    params: query
  })
}

// 查询课程学生详细
export function getCoursestudent(id) {
  return request({
    url: '/feedback/coursestudent/' + id,
    method: 'get'
  })
}

// 新增课程学生
export function addCoursestudent(data) {
  return request({
    url: '/feedback/coursestudent',
    method: 'post',
    data: data
  })
}

// 修改课程学生
export function updateCoursestudent(data) {
  return request({
    url: '/feedback/coursestudent',
    method: 'put',
    data: data
  })
}

// 删除课程学生
export function delCoursestudent(id) {
  return request({
    url: '/feedback/coursestudent/' + id,
    method: 'delete'
  })
}
